package com.oppo.skywalking.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 雇员表(employee)实体类
 * @author makejava
 * @since 2022-11-06 13:19:41
 */

@SuppressWarnings("serial")
@Data
@TableName("employee")
public class Employee extends Model<Employee> {

    /** 雇员id */
    @TableId
    private Long empId;

    /** 员工姓名 */
    private String name;

    /** 性别；0=女；1=男 */
    private Byte gender;

    /** 标题 */
    private String title;

    /** 生日 */
    private Date birthday;

    /** 部门id */
    private String depId;

    public static void main(String[] args) {
        Employee employee = new Employee();
        employee.setName("李四");
        System.out.println("employee = " + employee);
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
